/* eslint-disable */
import Vue from 'vue'
import VueRouter from 'vue-router'
// import Index from '../xiangmuguanli/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../xiangmuguanli/index'),
  },
  {
    path: '/index2',
    name: 'index2',
    component: () => import('../xiangmuguanli/index2'),
  },
  {
    path: '/index3',
    name: 'index3',
    component: () => import('../xiangmuguanli/index3'),
  },
  {
    path: '/jiedan',
    name: 'jiedan',
    component: () => import('../xiangmuguanli/jiedan'),
  },
  {
    path: '/kaoqinshenpi_index',
    name: 'kaoqinshenpi_index',
    component: () => import('../xiangmuguanli/kaoqinshenpi_index'),
  },
  {
    path: '/kaoqinshenpi_workin',
    name: 'kaoqinshenpi_workin',
    component: () => import('../xiangmuguanli/kaoqinshenpi_workin'),
  },
  {
    path: '/my_info',
    name: 'my_info',
    component: () => import('../xiangmuguanli/my_info'),
  },
  {
    path: '/my',
    name: 'my',
    component: () => import('../xiangmuguanli/my'),
  },
  {
    path: '/paiban',
    name: 'paiban',
    component: () => import('../xiangmuguanli/paiban'),
  },
  {
    path: '/paibanwancheng',
    name: 'paibanwancheng',
    component: () => import('../xiangmuguanli/paibanwancheng'),
  },
  {
    path: '/paigongpaiban',
    name: 'paigongpaiban',
    component: () => import('../xiangmuguanli/paigongpaiban'),
  },
  {
    path: '/piliangpaiban',
    name: 'piliangpaiban',
    component: () => import('../xiangmuguanli/piliangpaiban'),
  },
  {
    path: '/useradd',
    name: 'useradd',
    component: () => import('../xiangmuguanli/useradd'),
  },
  {
    path: '/usersearch',
    name: 'usersearch',
    component: () => import('../xiangmuguanli/usersearch'),
  },
  {
    path: '/xiangmujindu_bak',
    name: 'xiangmujindu_bak',
    component: () => import('../xiangmuguanli/xiangmujindu_bak'),
  },
  {
    path: '/xiangmujindu',
    name: 'xiangmujindu',
    component: () => import('../xiangmuguanli/xiangmujindu'),
  },
  {
    path: '/daka',
    name: 'daka',
    component: () => import('../xiangmuguanli/daka'),
  },
  // 设置
  {
    path: '/setting',
    name: 'setting',
    component: () => import('../xiangmuguanli/setting'),
  },
  // 更换手机号
  {
    path: '/genghuanshoujihao',
    name: 'genghuanshoujihao',
    component: () => import('../xiangmuguanli/genghuanshoujihao'),
  },
  // 修改密码
  {
    path: '/xiugaimima',
    name: 'xiugaimima',
    component: () => import('../xiangmuguanli/xiugaimima'),
  }
  ,
  // 绑定邮箱
  {
    path: '/bangdingyouxiang',
    name: 'bangdingyouxiang',
    component: () => import('../xiangmuguanli/bangdingyouxiang'),
  }
  ,
  // 关于我们
  {
    path: '/guanyuwomen',
    name: 'guanyuwomen',
    component: () => import('../xiangmuguanli/guanyuwomen'),
  }
  // {
  //   path: '/Home',
  //   name: 'Index',
  //   component: () => import('../pages_xmgl/index'),
  //   redirect: '/index',
  //   children: [
  //     {
  //       path: '/index',
  //       name: 'Index',
  //       component: () => import('../xiangmuguanli/index'),
  //     },
  //     {
  //       path: '/my',
  //       name: 'My',
  //       component: () => import('../xiangmuguanli/my'),
  //     }
  //   ]
  // },
]

const router = new VueRouter({
  routes,
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})

export default router
